﻿using BCDto.MakeStaticPagingComponent.MakeStaticPaging;
using BCDto.MakeStaticPagingComponent.PageTemplate;
using BCEntity.MakeStaticPagingComponent.PageTemplate;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MakeStaticPagingComponent
{
    /// <summary>
    /// 构建静态页面服务接口
    /// </summary>
    public interface IMakeStaticPagingService
    {
        /// <summary>
        /// 获取系统页面列表
        /// </summary>
        IEnumerable<MakeStaticPagingTaskDto> GetSystemPagingList();
        /// <summary>
        /// 获取分页列表页面模板信息
        /// </summary>
        /// <param name="pageTemplateId">页面模板Id</param>
        /// <returns></returns>
        PageTemplateDto GetPagingListInfo(long pageTemplateId);
        /// <summary>
        /// 获取内容页页面模板信息
        /// </summary>
        /// <param name="pageTemplateId">页面模板Id</param>
        /// <returns></returns>
        PageTemplateDto GetContentPagingInfo(long pageTemplateId);
        /// <summary>
        /// 构建静态页面
        /// </summary>
        /// <param name="pageTemplateId">页面模板Id</param>
        /// <param name="index">当前页码</param>
        /// <returns></returns>
        string MakeStaticPaging(long pageTemplateId, int? index);
    }
}
